package com.ldw.controller;

import com.ldw.common.Constans;
import com.ldw.service.TagService;
import com.ldw.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TagController {
    @Autowired
    private TagService tagService;

    //最热标签
    @GetMapping("tags/hot")
    public Result hotTage() {
        return tagService.hotTage(Constans.limit);
    }
}
